//
//@File    :	4.15_pointer.cpp
//@Time    :	2021/08/03 18:07:15
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	our first pointer variable
//

#include <iostream>

int main()
{
    using namespace std;
    int updates = 6;
    int * p_updates;
    p_updates = &updates;

    cout<<"Values: updates = "<<updates;
    cout<<",*p_updates = "<<p_updates<<endl;

    cout<<"Addresses:&updates="<<&updates;
    cout<<",p_updates = "<<p_updates<<endl;

    *p_updates = *p_updates + 1;
    cout<<"Now updates = "<<updates<<endl;
    system("pause");
    return 0;
}